package com.yc.fruitmarket.biz;

import java.util.List;
import java.util.Map;

public interface pvalBiz {
	public List<Map<String, String>> getPval(String pid);
	

	public int sendPval(String uid, String pid, String pval, String rating,String oid);

	/**
	 * 根据商品id求平均星数
	 * @param pid
	 * @return
	 */
	public double getstarL(String pid);
	
	/**
	 * 获取商品评论
	 * @return
	 */
	public List<Map<String, String>> getassess();
	
	/**
	 * 条件查询评论信息
	 * @param pname
	 * @param pid
	 * @param starnum
	 * @param oid
	 * @param start
	 * @param end
	 * @return
	 */
	public List<Map<String, String>> byassess(String pname, String pid, String starnum, String oid, String start, String end, String currentPage4, String pagesize);

}
